
class SourcePlugin:
	def __init__(self):
		# put all the links this plugins supports here - it will be used to filter supported URLs
		self.supported_sites = ['www.pornix.eu', 'showstoppers.myfreeforum.org']
		# the URLs we support
		self.supported_urls = self.supported_sites

	def get(self, url):
		"""Get the file from the url"""
		get_from_source_link(url)

	def url_matches(self, url):
		"""Check whether we support this URL"""
		# see if the url contains a substring we are looking for
		if not url.split('.')[-1].startswith('htm'):
			return False
		for l in self.supported_urls:
			if url.find(l) != -1:
				return True
		return False

	def version(self):
		"""Return plugin version - when interface changes, the version changes"""
		return 1

sources = [SourcePlugin()]
